<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>作业19</title>
    <script>
        /*
        19.  使用js将99乘法表输出在控制台
        */

        function chenFaBiao() {
            for(var i=1; i<=9; i++) {
                var tmp = "";
                for(var j=1; j<=i; j++) {
                    var sum = i*j;
                    tmp = tmp + i+"*"+j+"="+sum+"\t";
                }
                console.log(tmp);
            }
        }

        chenFaBiao();

    </script>
</head>
<body>
    
</body>
</html>